<template>
	<div>
		<header>
			<div @click="goBack">
				<i class="iconfont icon-back"></i>
			</div>
			<div>
				<slot>
					<span>登录</span>
				</slot>
			</div>
			<div>
				<i class="iconfont icon-shouye1"></i>
			</div>
		</header>
	</div>
</template>

<script>
	export default{
		methods:{
			goBack(){
				this.$router.back();
			}
		}
	}
</script>

<style scoped>
	header{
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		height: 1.173333rem;
		background-color: #b0352f;
		color: #fff;
	}
	header span{
		font-size: 0.48rem;
	}
	header i{
		padding: 0 0.4rem;
		font-size: 0.586667rem;
	}
</style>